# missingmasspoint develop
items = ['杯子', '筷子', '勺子']
exs = []

for item0 in items:
    left = item0
    for item1 in items:
        center = item1
        for item2 in items:
            right = item2
            if left != right and center != right and left != center:
                exs.append(f"{left},{center},{right}")

for ex in exs:
    item = ex.split(',')
    if item[0] != '筷子':
        if item.index('筷子') == 1:
            item[1], item[0] = item[0], item[1]
        else:
            item[2], item[1] = item[1], item[2]

    if item[2] != '杯子':
        if item.index('杯子') == 1:
            item[1], item[2] = item[2], item[1]
        else:
            item[0], item[1] = item[1], item[0]

    if item[0] != '勺子':
        if item.index('勺子') == 1:
            item[1], item[0] = item[0], item[1]
        else:
            item[2], item[1] = item[1], item[2]

    print(f"当初始顺序为{ex}时，最后右手物体为{item[2]}")

